<?php

namespace App\Http\Controllers\YApi;

//use Illuminate\Http\Request;
use Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;

use Session;
use Redirect;

use App\Models\BooksPingfen;

class DelReadStateController extends Controller
{

    public function delreadstate()
    {
		// 删除读书状态
		$bookid = request::input('bookid');
		$uid = request::input('uid');

		BooksPingfen::where('book_id', $bookid)->where('uid', $uid)->delete();

		return 1; // 删除成功
    }
    
}